Do not require float-time's arg to fit in time_t (Bug#11825).
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 01:57:42 +0000 (18:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 01:57:42 +0000 (18:57 -0700)
commit3550f2cade6bacd432e1c2ea31041001aeaa28a7
treeed22ef6f9ee49b1aa4147e2bb226456728a60e18
parentb37fae8a3cbef6a7d015b94ee490abf4ad8cb0cf
Do not require float-time's arg to fit in time_t (Bug#11825).

This works better on hosts where time_t is unsigned, and where
float-time is applied to the (negative) difference between two times.
* editfns.c (decode_time_components): Last arg is now double *,
not int *, and means to store all the result as a double, without
worrying about whether the seconds part fits in time_t.
All callers changed.
(lisp_time_argument): Remove last int * arg, as it's no longer needed.
All callers changed.
(Ffloat_time): Do not fail merely because the specified time falls
outside of time_t range.
src/ChangeLog
src/editfns.c
src/fileio.c
src/systime.h
src/undo.c